#ifndef CTimer_____
#define CTimer_____

// Code taken from DirectX SDK and adapted...

enum TIMER_COMMAND
{
	START, 
	STOP, 
	GETELAPSEDTIME
};

class CTimer
{
  private:

	//-------------------------------------------------------------------------
	// members
	//-------------------------------------------------------------------------

    BOOL			m_bUsingQPF;
    LONGLONG		m_llFrequency;
    LONGLONG		m_llStartCount;
    LONGLONG		m_llEndCount;
    double			m_fStartTime;
    double			m_fStopTime;

	//-------------------------------------------------------------------------
	// constructors
	//-------------------------------------------------------------------------

public:

	CTimer();
	
	//-------------------------------------------------------------------------
	// functions
	//-------------------------------------------------------------------------

	float __stdcall Timer(TIMER_COMMAND command);

};

#endif